<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="houtai_mainhead.jsp"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="statics/css/manage.css" type="text/css"></link>
<script src="statics/js/usermanage.js"></script>
<title>Insert title here</title>

</head>

<body>
	<form method="get" class="handler">
		<input class="searchput" type="text" name="tel" placeholder="姓名/电话查询">
		<button class="search">查询</button>
	</form>
	<div>${error}</div>
	<table>
		<thead>
			<tr height="50px">
				<th>用户名</th>
				<th>电话</th>
				<th>email</th>
				<th>是否运行</th>
				<th>余额</th>
				<th>积分</th>
				<th>操作</th>
			</tr>
		</thead>

		<tbody>

			<c:forEach items="${userlist}" var="user">
				<tr>
					<td>${user.uname}</td>
					<td>${user.utel}</td>
					<td>${user.uemail}</td>
					<td><c:if
							test="${ user.ustate == null || user.ustate ==false}">
							<img src="statics/image/yqs/no.gif">
						</c:if> <c:if test="${ user.ustate==true}">
							<img src="statics/image/yqs/yes.gif">
						</c:if></td>
					<td>${user.umoney}</td>
					<td>${user.ujf}</td>
					<td>
						<div class="caozuo">
							<a class="red" onclick="usermodify(this)" id=${user.uid }>修改</a>
							<a class="green" onclick="chongzhi(this)" data-tel="${user.utel}">充值</a>
							<div class="box" id="cz">
								<form action="moeycharge" method="post">
									<div class="layer-title">
										<div style="float: left;">充值</div>
										<a class="x" onclick="closethis(this)"><img width="40px"
											height="30px" src="statics/image/yqs/close.png"></a>
									</div>
									<div class="middle">
										<label>用户电话：</label><input type="text" name="tel2"> <br>
										<label>充值金额: </label><input type="text" name="chongmoney">
									</div>
									<div class="bottom_btnlist">
										<button class="btn">确定</button>
									</div>
								</form>
							</div>
							<a class="blue" onclick="koufei(this)" data-tel="${user.utel}">扣费</a>
							<div class="box" id="kf">
								<form action="moeycharge" method="post">
									<div class="layer-title">
										<div style="float: left;">充值</div>
										<a class="x" onclick="closethis(this)"><img width="40px"
											height="30px" src="statics/image/yqs/close.png"></a>
									</div>
									<div class="middle">
										<label>用户电话：</label><input type="text" name="tel2"> <br>
										<label>充值金额: </label><input type="text" name="chongmoney">
									</div>
									<div class="bottom_btnlist">
										<button class="btn">确定</button>
									</div>
								</form>
							</div>
							<a class="blue" onclick="userRecoed(1,4,this)" id=${user.uid }>记录</a>
						</div>
					</td>

				</tr>

			</c:forEach>
		</tbody>
	</table>
	</form>


	<div class="box" id="xiugai" style="width: 600px; height: 400px;">
		<form action="houtaiusermodify" method="post">
			<div class="layer-title">
				<div style="float: left;">会员资料修改</div>
				<a class="x" onclick="closethis(this)"><img width="40px"
					height="30px" src="statics/image/yqs/close.png"></a>
			</div>
			<div class="middle">
				姓名： <input id="r1" type="text" name="uname"> <br> 电话： <input
					id="r2" type="text" name="utel"> <br> 邮箱： <input
					id="r3" type="text" name="uemail"> <br> <br> 状态：
				<select class="select" name="selectName">
					<option>运行</option>
					<option>冻结</option>
				</select> <br> <input id="r4" type="hidden" name="id"> <br>
			</div>
			<div class="bottom_btnlist">
				<button class="btn">确定</button>
			</div>
		</form>
	</div>

<!-- 
	<div class="box">
		<form action="moeycharge" method="post">
			<div class="layer-title">
				<div style="float: left;">充值</div>
				<a class="x" onclick="tanchu(0,2)"><img width="40px"
					height="30px" src="statics/image/yqs/close.png"></a>
			</div>
			<div class="middle">
				<label>用户电话：</label><input type="text" name="tel2"> <br>
				<label>充值金额: </label><input type="text" name="chongmoney">
			</div>
			<div class="bottom_btnlist">
				<button class="btn">确定</button>
			</div>
		</form>
	</div> -->



	<!-- <div class="box">
		<form action="koufei" method="post">
			<div class="layer-title">
				<div style="float: left;">扣费</div>
				<a class='x' onclick="tanchu(0,3)"><img width="40px"
					height="30px" src="statics/image/yqs/close.png"></a>
			</div>
			<div class="middle">
				<label>用户电话：</label><input type="text" name="tel3"><br>
				<label>扣费金额: </label><input type="text" name="reducemoney">
			</div>
			<div class="bottom_btnlist">
				<button class="btn">确定</button>
			</div>
	</div> -->

	<div id="userRecord" style="display: none;">
		<!-- <div class="layer-title">
			<div style="float: left;">用户消费记录</div>
			<a class="x" onclick="userRecoed(0,4,this)"><img width="40px"
				height="30px" src="statics/image/yqs/close.png"></a>
		</div> -->
		<table class="tab"></table>

	</div>


	<div id="temp"></div>

</body>
</html>